﻿@{
    ViewBag.Title = "IdeasView";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
 <input type="hidden" value="@Session[HomeCareLibrary.Constants.SessionConstants.MODE]" id="hdnSessionValueIdeasView" />
<script type="text/javascript">
    $(document).ready(function () {
        window.scrollTo(0, 0);
        if ($("#divIdeas").html().trim() == '') {
            $("#wait_tasktipsideas").css("display", "block");
            $("#divIdeas").load("/Mtt/ideas", function () {
                $("#wait_tasktipsideas").css("display", "none");
                if ($(this).html() == '') {
                    window.location.href = "/home/login"
                }
            });
        }
        $("#divbottomtaskstips").show();
        $(".task-tab, .tips-tab, .extras-tab, .admin-tab").hide();
        $(".ideas-tab").show();
        $("#ideasLI").addClass('active').siblings().removeClass('active');
        checkForIphone();
    });
    function checkForIphone() {

        if ($("#hdnSessionValueIdeasView").val() != '') {
            if ($("#hdnSessionValueIdeasView").val() == "@HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP" || $("#hdnSessionValueIdeasView").val() == "@HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP") {

                $(".mobileMenu").show();
            }
        }

    }

</script>